<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/static/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
 <title>后台管理系统</title>
 <link href="${ctxStatic}/css/iconfont.css" rel="stylesheet" />
 <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet" />
  <link href="${ctxStatic}/css/kpiuitanchu.css" rel="stylesheet" />
 <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
 <script src="${ctxStatic}/layui/layui.all.js"  type="text/javascript"></script>
</head>
<body>
<div class="tanchucontent" style="margin-top:10px;width:98%">
 <form class="layui-form" id="formedit" name="formedit" action="change_userpwd" method="post" target="d41d8cd98f00b204e9800998ecf8427e">
         <iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank" style="display:none;"></iframe>
  
  <table style="width:95%">
   <tr>
    <td class="td_right">密码：</td>
    <td>
     <input type="text" id="pwd" name="pwd" lay-verify="required" autocomplete="off" placeholder="密码" class="layui-input" >
    </td>
   </tr>
   <tr>
    <td class="td_right">确认密码：</td>
    <td>
     <input type="text" id="confirmpwd" name="confirmpwd" lay-verify="confirmpwd" autocomplete="off" placeholder="确认密码" class="layui-input" >
    </td>
   </tr>
    <tr>
    <td colspan="2" style="text-align: center">
       <button class="button" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
		 <input type="button" value="关闭" class="button" onclick="top.CloseOpenWindow()"/>
    </td>
   </tr>
  </table>
   
		  
		  
		  
		
  </form>
</div>

<script>
layui.use('form', function(){
    var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
	form.render();
    
	form.verify({
		confirmpwd:function(value){
			if(value==''){
				return '确认密码不能为空';
			}
			if(value!=$("#pwd").val()){
				return '两次密码不一致';
			}
		}
	})
});

function CloseDialog(result,msg){
	  top.CloseDialog(result,msg);
}
</script>
  
</body>
</html>